#
# Makefile - advn
# 
# Options needed for ncurses and menu support 
CFLAGS = -lmenu -lncurses
# Installation directory for binary
# NOTE: This should be changed if anyone else is to use this..
INSTDIR = /home/dah/src/bin
all: advn
advn: main.o
	gcc -o advn main.o $(CFLAGS)
main.o: main.c
	gcc -c main.c
clean:
	-rm main.o
install: advn
	@if [ -d $(INSTDIR) ];\
		then\
		cp advn $(INSTDIR);\
		chmod 755 $(INSTDIR)/advn;\
		echo "Installed in $(INSTDIR)";\
	else\
		echo "Sorry, $(INSTDIR) does not exist.";\
	fi
